/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package springapp;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author admin
 */
public class Main {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"spring-config.xml"});
        Controller controller = (Controller) context.getBean("controller");
        controller.run();
    }
    
}
